package bankaccount;

public class BankTest {
    public static void main(String[] args) {
        BankAccount account = new BankAccount(1000);
        WithdrawRunnable withdrawal = new WithdrawRunnable(account, 100);

        Thread t1 = new Thread(withdrawal, "用户A");
        Thread t2 = new Thread(withdrawal, "用户B");

        t1.start();
        t2.start();
    }
}
